package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.Product;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
public interface ProductService extends IService<Product> {

    Page<Product> getProducts(HashMap<String, Object> map);

    Product getProductById(Integer id);

    List<Product> getSellingProduct();

    Page<Product> getProductBySearchData(HashMap<String, Object> map);

    Page<Product> getProduct(HashMap<String, Object> map);

}
